#include<iostream>
using namespace std;

int main()
{
	const int Max = 5;
	int  golf = 0, sum = 0;
	cout << "Show your golf scores " << Max << " rounds\n";
	for (int i = 0; i < Max; i++)
	{
		cout << "round " << i + 1 << ":";
		while (!(cin >> golf))
		{
			cin.clear();
			while (cin.get() != '\n');//delete excessive characters
			cout << "Please give a number:";
		}
		sum += golf;
	}
	cout << double(sum) / Max << " = average in " << Max << " times\n";
	return 0;
}
